#pragma once
#include <iostream>
#include <functional>
#include "socket.hpp"

using server_io_t = function<Socket>;
// 并发接收多个链接，收数据，发数据
class Server
{
public:
    void Loop()
    {
        pthread_t tid;
        pthread_create(&tid, nullptr, Execute, (void*)&_ptr);
    }
    static void* Execute(void* args)
    {
        SockShPtr* ptr = (SockShPtr*)args;
        ptr->
    }
private:
    SockShPtr _ptr;
};